    var trangchu=location.href.split("/");
    var trangchu=trangchu[0]+'//'+trangchu[1]+trangchu[2];   
    switch(trangchu)
      {
      case "http://japanesepornmovies.blogspot.com":
          ID_cua_site = 40186;
          break
      default:
          ID_cua_site = 0;
          break
      }
      /* document.write("<div style='color:#272626; font-size:6px;'>"+ID_cua_site+"</div>"); */
      var popads_view='\u000a\u003c\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003d\u0022\u0074\u0065\u0078\u0074\u002f\u006a\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u003e\u000a\u0020\u0020\u0076\u0061\u0072\u0020\u005f\u0070\u006f\u0070\u0020\u003d\u0020\u005f\u0070\u006f\u0070\u0020\u007c\u007c\u0020\u005b\u005d\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0073\u0069\u0074\u0065\u0049\u0064\u0027\u002c\u0020\u0049\u0044\u005f\u0063\u0075\u0061\u005f\u0073\u0069\u0074\u0065\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u006d\u0069\u006e\u0042\u0069\u0064\u0027\u002c\u0020\u0030\u002e\u0030\u0030\u0030\u0035\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0070\u006f\u0070\u0075\u006e\u0064\u0065\u0072\u0073\u0050\u0065\u0072\u0049\u0050\u0027\u002c\u0020\u0030\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0064\u0065\u006c\u0061\u0079\u0042\u0065\u0074\u0077\u0065\u0065\u006e\u0027\u002c\u0020\u0030\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0027\u002c\u0020\u0066\u0061\u006c\u0073\u0065\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0050\u0065\u0072\u0044\u0061\u0079\u0027\u002c\u0020\u0030\u005d\u0029\u003b\u000a\u0020\u0020\u005f\u0070\u006f\u0070\u002e\u0070\u0075\u0073\u0068\u0028\u005b\u0027\u0074\u006f\u0070\u006d\u006f\u0073\u0074\u004c\u0061\u0079\u0065\u0072\u0027\u002c\u0020\u0066\u0061\u006c\u0073\u0065\u005d\u0029\u003b\u000a\u0020\u0020\u0028\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0029\u0020\u007b\u000a\u0020\u0020\u0020\u0020\u0076\u0061\u0072\u0020\u0070\u0061\u0020\u003d\u0020\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002e\u0063\u0072\u0065\u0061\u0074\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0028\u0027\u0073\u0063\u0072\u0069\u0070\u0074\u0027\u0029\u003b\u0020\u0070\u0061\u002e\u0074\u0079\u0070\u0065\u0020\u003d\u0020\u0027\u0074\u0065\u0078\u0074\u002f\u006a\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0027\u003b\u0020\u0070\u0061\u002e\u0061\u0073\u0079\u006e\u0063\u0020\u003d\u0020\u0074\u0072\u0075\u0065\u003b\u000a\u0020\u0020\u0020\u0020\u0070\u0061\u002e\u0073\u0072\u0063\u0020\u003d\u0020\u0027\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0077\u006f\u0072\u006c\u0064\u002e\u0070\u006f\u0070\u0061\u0064\u0073\u0063\u0064\u006e\u002e\u006e\u0065\u0074\u002f\u0070\u006f\u0070\u002e\u006a\u0073\u0027\u003b\u000a\u0020\u0020\u0020\u0020\u0076\u0061\u0072\u0020\u0073\u0020\u003d\u0020\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002e\u0067\u0065\u0074\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u0042\u0079\u0054\u0061\u0067\u004e\u0061\u006d\u0065\u0028\u0027\u0073\u0063\u0072\u0069\u0070\u0074\u0027\u0029\u005b\u0030\u005d\u003b\u0020\u0073\u002e\u0070\u0061\u0072\u0065\u006e\u0074\u004e\u006f\u0064\u0065\u002e\u0069\u006e\u0073\u0065\u0072\u0074\u0042\u0065\u0066\u006f\u0072\u0065\u0028\u0070\u0061\u002c\u0020\u0073\u0029\u003b\u000a\u0020\u0020\u007d\u0029\u0028\u0029\u003b\u000a\u003c\u002f\u0073\u0063\u0072\u0069\u0070\u0074\u003e\u000a';
      document.write(popads_view);

/* ------------------------------------------------------------------------------------------------------------------ */

var thumbnail_mode = "no-float";
var classicMode = false ;

var sokytu2=40;
function rutgontieudephim2(tieude2,sokytu2) {
         var s=tieude2.split(" ");
         var s = s.join(" ");
         if (sokytu2 < tieude2.length) {
                 var sokytucancat2=s.indexOf(" ",sokytu2);
                 if (sokytucancat2!=-1){
                       s = s.substring(0, sokytucancat2)+"...";
                 }
          }
    return s;
}

function removeHtmlTag(strx, chop) {
    if (strx.indexOf("<") != -1) {
        var s = strx.split("<");
        for (var i = 0; i < s.length; i++) {
            if (s[i].indexOf(">") != -1) {
                s[i] = s[i].substring(s[i].indexOf(">") + 1, s[i].length)
            }
        }
        strx = s.join("")
    }
    chop = (chop < strx.length - 1) ? chop : strx.length - 2;
    while (strx.charAt(chop - 1) != ' ' && strx.indexOf(' ', chop) != -1) chop++;
    strx = strx.substring(0, chop - 1);
    return strx + '...'
}

function getNameLabel(pLabelName){
       var pLabelName=pLabelName.split(",");
       SS1 = new Array();
       SS2 = new Array();
       SS3 = new Array();
       
       for (var i=0;i<pLabelName.length;i++){
           if (pLabelName[i]=="Phim Hot")
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://1.bp.blogspot.com/-gpJfdYqKEBY/T-GcIzI5QPI/AAAAAAAAA9s/pId95QnBn8w/s1600/hot.png"/>';
           }
           else if (pLabelName[i]=="Phim HD")
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://2.bp.blogspot.com/-6KQnnP_lMpY/UIyeQSztVZI/AAAAAAAABXQ/bzJ7xBvqUGc/s1600/hd.gif"/>';
           }
           else if (pLabelName[i]=="Phim 18")
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://3.bp.blogspot.com/-WjhxvORlhgM/T-GfLiLGbKI/AAAAAAAAA-A/YUwLn3b6VNA/s1600/bong%60.png"/>';
           }
           else if (pLabelName[i]=="Phim 18+")
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://3.bp.blogspot.com/-WjhxvORlhgM/T-GfLiLGbKI/AAAAAAAAA-A/YUwLn3b6VNA/s1600/bong%60.png"/>';
           }           
           else if (pLabelName[i]=="Trailer")
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://2.bp.blogspot.com/-GEArVXodrW8/T-Gb8ZU7ZfI/AAAAAAAAA9k/o5TVwiRu8K4/s1600/trailer.png"/>';
           }
           else
           {
              SS1[i]='<img class="getlabelshowrecentposts1" src="http://1.bp.blogspot.com/-MlYVZK187ro/UIv9mEdMwYI/AAAAAAAABPk/hZzHgxSucFc/s1600/full.gif"/>';
           }
        SS2 += SS1[i]+"*";
        }
        var SS3="";
        var SS2=SS2.split("*");
           for (var i=0;i<(SS2.length-1);i++){
                if (SS2[i]!=""){
                    SS3 += SS2[i]+"*";   
                }
                /*else {SS3="";}*/
           }
           if (SS3==""){
                var GetLabelImg=SS3;
           }
           else {
                var SS3=SS3.split("*");
                var ry=Math.floor(Math.random()*(SS3.length-1));
                var GetLabelImg=SS3[ry];
           }
        return GetLabelImg;
}

function getLabelName2(pLabelName2){
                 return pLabelName2;
}

function getLabelURL2(pLabelURL2){
                 return pLabelURL2;
}



function createsSummaryAndThumb(pID,pURL){
  if (pLabelName.indexOf("2013") == -1){
   var div = document.getElementById(pID);
   var imgtag = "";
   var img = div.getElementsByTagName("img");
   var summ = 600;  

         var theImages = new Array();
         theImages[0] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao1010.jpg';
         theImages[1] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao1510.jpg';
         theImages[2] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao2010.jpg';
         theImages[3] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao2510.jpg';
         theImages[4] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao3010.jpg';
         theImages[5] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao3510.jpg';
         theImages[6] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao4010.jpg';
         theImages[7] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao4510.jpg';
         theImages[8] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao5010.jpg';
         var jj = 0;                        
         var pp = theImages.length;
         var preBuffer = new Array();
         for (ii = 0; ii < pp; ii++){
                preBuffer[ii] = new Image();
                preBuffer[ii].src = theImages[ii]
         };
         var whichImage1 = Math.random();
         var whichImage = Math.round(whichImage1*(pp-1));
         songaunhien1 =Math.round(whichImage1*30000);        
         songaunhien='<div class="number_random_thumbnail">View: '+songaunhien1+'</div>';
         ngoisaongaunhien='<div class="star_random_thumbnail" style="background: #0a0a0a url(' +theImages[whichImage]+ ') no-repeat scroll top 2px left;"></div>';
         tennhan='<a class="label-link" href="'+getLabelURL2(linknhanphim2)+ '">'+ getLabelName2(tennhanphim2)+'</a>';
         nhanphim='<span class="process_thumbnail"><span>'+tennhan+ '</span></span>';
         if (img.length >= 1) {
               imgtag = '<a href="' + pURL + '"><span class="play-button" style="float:left;"><img src="' + img[0].src + '" width="135px" height="170px"/></span></a>';
               summ = 400
         }
         var summary ='<div class="count_star_number">'+ imgtag  + getNameLabel(StringLabel)+ nhanphim + ngoisaongaunhien +songaunhien +'</div><div class="entry">' + removeHtmlTag(div.innerHTML, summ) +'...'+ '<!--more--></div>';
         div.innerHTML = summary;
   }
}


function createsSummaryAndThumb1(pID,pURL){
        var d = document.getElementById(pID),
               c = d.innerHTML;
         if (/<\!--\s*more\s*--\>/.test(c)) d.innerHTML = getSummaryLikeWP(pID);
        else {
        var pID = "",
               b = d.getElementsByTagName("img"),
               e = 800;

                       var theImages = new Array();
                       theImages[0] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao1010.jpg';
                       theImages[1] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao1510.jpg';
                       theImages[2] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao2010.jpg';
                       theImages[3] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao2510.jpg';
                       theImages[4] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao3010.jpg';
                       theImages[5] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao3510.jpg';
                       theImages[6] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao4010.jpg';
                       theImages[7] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao4510.jpg';
                       theImages[8] = 'http://i42.servimg.com/u/f42/16/42/83/35/sao5010.jpg';
                       var jj = 0;                        
                       var pp = theImages.length;
                       var preBuffer = new Array();
                       for (ii = 0; ii < pp; ii++){
                             preBuffer[ii] = new Image();
                             preBuffer[ii].src = theImages[ii]};
                       var whichImage1 = Math.random();
                       var whichImage = Math.round(whichImage1*(pp-1));
                       songaunhien1 =Math.round(whichImage1*30000);
                       
                       songaunhien='<div style="float:right;margin-top:3px;color:#9f9f9f;font:normal 10px Tahoma, Arial, Verdana; ">View: '+songaunhien1+'</div>';
                       ChuoiDeXuatNgoiSaoNgauNhien='<div class="ngoisao"><div style="float:right;margin-right:0px;margin-top:0px;height:20px;width:62px;background: #0a0a0a; border:solid 1px #0a0a0a";>'+songaunhien+ '</div><div style="float:left;margin-left:0px;margin-top:0px;height:20px;width:77px;background: #0a0a0a url(' +theImages[whichImage]+ ') no-repeat scroll top 2px left; border:solid 1px #0a0a0a"></div></div>';
                       tennhan='<a class="label-link" href="'+getLabelURL2(linknhanphim2)+'">'+getLabelName2(tennhanphim2)+'</a>';
                       nhanphim='<span class="process_thumbnail"><span>'+tennhan+ '</span></span>';
                       /* nhanphim='<span class="process1" style="float:lef;margin-right:0px;margin-top:140px;font:bold 12px Tahoma, Arial, Verdana; "><span>'+tennhan+ '</span></span>' */

           1<=b.length&&(a="float"==thumbnail_mode?'<a title="Click to view" href="'+pURL+'"><span style="float:left; margin-top: -4px; padding:0px 10px 5px 0px;"><img src="'+b[0].src+'" width="135px" height="170px"/></span></a>':'<a title="Click to view" href="'+pURL+'"><span style="float:left; margin-top: -4px; padding:0px 10px 5px 0px;"><img src="'+b[0].src+'" width="135px" height="170px"/>'+ChuoiDeXuatNgoiSaoNgauNhien+'</span></a>' ,e=800);

            1>b.length&&(a="float"==thumbnail_mode?'<a href="'+pURL+'"><span style="float:left; margin-top: -4px; padding:0px 10px 5px 0px;"><img src="http://i42.servimg.com/u/f42/16/42/83/35/no_img10.jpg" width="135px" height="170px"/></span></a>':'<a href="'+pURL+'"><span style="float:left; margin-top: -4px; padding:0px 10px 5px 0px;"><img src="http://i42.servimg.com/u/f42/16/42/83/35/no_img10.jpg" width="135px" height="170px"/>' +ChuoiDeXuatNgoiSaoNgauNhien+' </span></a>', e=800);

          c=classicMode?a+'<div class="entry"><div style="margin-top:7px;">'+ removeHtmlTag(c,e)+"...</div></div>":a+'<div class="entry">'+ getNameLabel(StringLabel)+ nhanphim +'<div style="margin-top:7px;">'+  removeHtmlTag(c,e)+'</div></div><br/>';

           /* Chuan c=classicMode?a+'<div class="entry"><div style="margin-top:7px;">'+ removeHtmlTag(c,e)+"...</div></div>":a+'<div class="entry">'+getNameLabel(StringLabel)+'<div style="margin-top:7px;">'+ removeHtmlTag(c,e)+'</div></div>'; */
         d.innerHTML=c;
     }
   /*  d.style.display="block"; */
 }

